<!--
 * @Author: your name zzw
 * @Date: 2020-10-13 16:57:00
 * @LastEditTime: 2020-10-14 16:00:32
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \poros-cli-ond:\zzw\new-hx-cli\new-srm-web\src\components\keywordQuery\index.vue
-->
<template>
  <span class="wrapper" v-show="!file.length==0">
      <p-input-search
        placeholder="请输入关键字..."
        style="width: 200px;padding-right:8px;"
        allowClear="true"
        v-model="keyword"
         @search="loadKeyword"
        />
  </span>
</template>

<script>
import * as utils from '@/utils/util'
// utils.cloneObject(this.queryParamsModel)
export default {
  components: {},
  props: {
    //查询字段
    file:{
        type: Array,
        default: function () {
          return []
        }
    }
  },
  data() {
    return {
        keyword:'',
    };
  },
  watch: {},
  computed: {},
  methods: {
      loadKeyword(){
         let query = {key:this.file,value:this.keyword}
         this.$emit('handkeywordQuery',query)
      }
  },
  created() {},
  mounted() {}
};
</script>
<style  scoped>
.wrapper{}
</style>